package com.bank.backend.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 银行卡实体类
 */
@Data
@TableName("card")
public class Card {
    @TableId(value = "card_id")
    private String cardId;

    private Integer userId;

    private Integer depositId;

    private String currency;

    private LocalDateTime openDate;

    private BigDecimal openMoney;

    private BigDecimal balance;

    private String password;

    private Integer isReportLoss;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableLogic
    private Integer isDeleted;
}